/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.factory.abstractss;

/**
 *
 * @author xiay
 * @since 2020/12/4 11:30 下午
 */
public class AbstractFactoryClient2 {

    public static void main(String[] args) {
        ComputerFactory factory = new AppleComputerFactory();
        Keyboard keyboard = factory.createKeyboard();
        keyboard.press();
        Mouse mouse = factory.createMouse();
        mouse.click();
    }
}
